import json


class param:
    version = 0
    uuid = None
    channel = None
    package = None
    duuid = None
    mode = None
    mac = None

    def __init__(self, version, uuid, channel, package, duuid, mode, mac):
        self.version = version
        self.uuid = uuid
        self.channel = channel
        self.package = package
        self.duuid = duuid
        self.mode = mode
        self.mac = mac

paramA = param(1, "97b88b7b-452a-4d4d-b899-3e87d90974fc", "common", "com.mylove.galaxy",
               "f0b6b0ccdb73cead48232f6364733120", "VA_3128", "02:00:00:00:00:00")
paramA = paramA.__dict__
jsontext = json.dumps(paramA)
print(jsontext)
